package cn.v2tila.rsosa.management.jpa;

import cn.v2tila.rsosa.management.entity.ClassEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author v2tila on 16:15 2019/2/25
 */

public interface ClassJPA extends JpaRepository<ClassEntity, Integer>,
        JpaSpecificationExecutor<ClassEntity> {

    ClassEntity findByNo(String no);
    ClassEntity findByNameAndSchoolNoAndCollegeNo(String name, String schoolNo, String collegeNo);
    ClassEntity findByNoAndSchoolNoAndCollegeNo(String no, String schoolNo, String collegeNo);


}
